{WebInspector.VBox.call(this);this.registerRequiredCSS("devices/devicesView.css");this.element.classList.add("devices");this._devicesHelp=this.element.createChild("div");this._devicesHelp.innerHTML=WebInspector.UIString("No devices detected. "+"Please read the <a href=\"https://developers.google.com/chrome-developer-tools/docs/remote-debugging\"> remote debugging documentation</a> "+"to verify your device is enabled for USB debugging.");this.element.createChild("div","devices-info").innerHTML=WebInspector.UIString("Click \"Try here\" button, to open the current page in the selected remote browser.");this._devicesList=this.element.createChild("div");this._devicesList.cellSpacing=0;InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.DevicesUpdated,this._onDevicesUpdated,this);};WebInspector.DevicesView.MinVersionNewTab=29;WebInspector.DevicesView.Events={DevicesChanged:"DevicesChanged"};WebInspector.DevicesView.prototype={_onDevicesUpdated:function(event)
continue;deviceSection.querySelector(".device-name").textContent=device.adbModel;deviceSection.querySelector(".device-auth").textContent=device.adbConnected?"":WebInspector.UIString("Pending authentication: please accept debugging session on the device.");var browsers=device.browsers.filter(function(browser){return browser.adbBrowserChromeVersion;});var newBrowserIds=browsers.map(function(browser){return browser.id;});Array.prototype.forEach.call(deviceSection.querySelectorAll(".browser"),removeObsolete.bind(null,newBrowserIds));for(var b=0;b<browsers.length;b++){var browser=browsers[b];var incompatibleVersion=browser.hasOwnProperty("compatibleVersion")&&!browser.compatibleVersion;var browserSection=deviceSection.querySelector("#"+sanitizeForId(browser.id));if(!browserSection){browserSection=createElementWithClass("div","browser");browserSection.id=sanitizeForId(browser.id);insertChildSortedById(deviceSection,browserSection);var browserName=browserSection.createChild("div","browser-name");browserName.textContent=browser.adbBrowserName;if(browser.adbBrowserVersion)
browserName.textContent+=" ("+browser.adbBrowserVersion+")";if(incompatibleVersion||browser.adbBrowserChromeVersion<WebInspector.DevicesView.MinVersionNewTab){var warningSection=browserSection.createChild("div","warning");warningSection.textContent=incompatibleVersion?WebInspector.UIString("You may need a newer version of desktop Chrome. Please try Chrome %s or later.",browser.adbBrowserVersion):WebInspector.UIString("You may need a newer version of Chrome on your device. Please try Chrome %s or later.",WebInspector.DevicesView.MinVersionNewTab);}else{var clickHandler=InspectorFrontendHost.openUrlOnRemoteDeviceAndInspect.bind(null,browser.id,WebInspector.targetManager.inspectedPageURL());browserSection.appendChild(createTextButton(WebInspector.UIString("Try here"),clickHandler,"",WebInspector.UIString("Inspect current page in this browser.")));}}}}},willHide:function()